<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/18
 * Time: 11:48
 */
//$scores = [2112,23,23,32,12,45,78];
$scores = [
    'c'=>5,
    'b'=>10
];
var_dump($scores);
ksort($scores);//sort用来排序关联数组会丢失下标
var_dump($scores);